package com.xuecheng.teaching.service;

import com.xuecheng.commons.model.dto.CommentListDto;
import com.xuecheng.commons.model.dto.CourseCommentDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CommentListVo;
import com.xuecheng.commons.model.vo.PageResponseResult;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.StarRankVo;
import com.xuecheng.teaching.domain.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 作者
 * @since 2022-10-10
 */
public interface CommentService extends IService<Comment> {
//评论课程
    ResponseResult<CommentListVo> comment(CourseCommentDto dto);
//评论列表
ResponseResult<List<CommentListVo>> commentlist(CommentListDto dto);
//课程评论统计
    ResponseResult<StarRankVo>  courseReplyStatistical(long targetId);
//    评论列表
    ResponseResult<CommentListVo> forlist(CommentListDto dto, PageRequest request);


    ResponseResult<CommentListVo> listAll(CommentListDto dto);

    ResponseResult  delete(long commentId);

}

